﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class admin_newsMakeHtml : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            newsMakeHtml();
        }
    }
    public void newsMakeHtml()
    {
        if (Request["ids"] != null )
        {
            string[] idArr = Request["ids"].ToString().Split(',');
            if (idArr != null && idArr.Length > 0)
            {
                for (int i = 0; i < idArr.Length; i++)
                {
                    if (idArr[i].Trim().Length > 0)
                    {
                        //生成静态页面
                        MakeHtml.info(Server.MapPath("/info.htm"), idArr[i].ToString(), Server.MapPath("/info/"));
                    }
                }
            }
        }
        Response.Redirect("tree.aspx" + (Request["channelid"] != null ? "?channelid=" + Request["channelid"].ToString() : ""));
    }
}
